import os, shutil
import time

import requests

from common.utils import root_path

requests.packages.urllib3.disable_warnings()
import pytest


if __name__ == '__main__':
    pytest.main([])
    time.sleep(3)
    tempdir = root_path()+'/temp'
    report_dir = root_path() + '/report'
    os.system(f"allure generate {tempdir} -o {report_dir} --clean")
    shutil.make_archive(root_path() + '/report_HTML', 'zip', base_dir=root_path() + '/report')
    # 发送邮箱
